import Opt from '@/components/dt/info/Opt.js'
import organizationOpt from '@/biz/option/organization.js'

class SearchOpt extends Opt {

  constructor(info) {
    super(info)
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      organizationOpt.create({
        key: 'outOrgIds',
        title: '移出组织',
        level: 3,
      }),
      organizationOpt.create({
        key: 'inOrgIds',
        title: '移入组织',
        level: 3,
      }),
    ]
  }
}

export default SearchOpt
